package com.greyu.ysj.mapper;

import com.greyu.ysj.entity.CbtAutoExchange;
import com.greyu.ysj.entity.CbtAutoExchangeExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface CbtAutoExchangeMapper {
    long countByExample(CbtAutoExchangeExample example);

    int deleteByExample(CbtAutoExchangeExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(CbtAutoExchange record);

    int insertSelective(CbtAutoExchange record);

    List<CbtAutoExchange> selectByExample(CbtAutoExchangeExample example);

    CbtAutoExchange selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") CbtAutoExchange record, @Param("example") CbtAutoExchangeExample example);

    int updateByExample(@Param("record") CbtAutoExchange record, @Param("example") CbtAutoExchangeExample example);

    int updateByPrimaryKeySelective(CbtAutoExchange record);

    int updateByPrimaryKey(CbtAutoExchange record);
    
    int countTodayByUserId(Integer userId);
    
    int selectMaxDrawId();
}